const express = require('express')
const app = express()
const cors = require('cors')
module.exports = (req, res, next) => {
  if (process.env.NODE_ENV === 'development') {
    app.use(cors())
  }
  next()
}
